import {BasicColumn, FormSchema} from '@apps/antd-admin/src/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
  {
    title: '车系名称',
    dataIndex: 'seriesName',
    width: 100,
  },
  {
    title: '分组名称',
    dataIndex: 'seriesGroupName',
    width: 100,
  }
];

export const searchFormSchema: FormSchema[] = [{
  field: 'seriesName',
  label: '车系名称',
  component: 'Input',
  colProps: {span: 20},
}];

export const formSchema: FormSchema[] = [
  {
    label: '品牌ID',
    field: 'brandId',
    component: 'Input',
    required: true,
  },
  {
    label: '车系ID',
    field: 'seriesId',
    component: 'Input',
    required: true,
  },
  {
    label: '车系名称',
    field: 'seriesName',
    component: 'Input',
    required: true,
  },
  {
    label: '类型',
    field: 'makerType',
    component: 'Input',
    required: true,
  },
  {
    label: '分组名称',
    field: 'seriesGroupName',
    component: 'Input',
    required: true,
  },
  {
    label: '更新时间',
    field: 'updateTime',
    component: 'Input',
    required: true,
  },
  {
    label: '创建时间',
    field: 'createTime',
    component: 'Input',
    required: true,
  },
];
